package com.example.rx.rxtest.dagger;

import com.example.rx.rxtest.MyApplication;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/**
 * @author LiuChao
 * @describe
 * @date 2016/12/27
 * @contact email:450127106@qq.com
 */
@Singleton
@Module
public class ApplicationModel {
    private MyApplication mMyApplication;

    public ApplicationModel(MyApplication myApplication) {
        mMyApplication = myApplication;
    }

    @Provides
    public MyApplication provideApllication() {
        return mMyApplication;
    }
}
